package com.dxysun.mybatis.spring.domain;

import java.io.Serializable;

public class User implements Serializable
{
	private Integer id;

	private String userName;

	private String realName;

	private String password;

	private Integer age;

	private Integer dId;

	private Dept dept;

	public Integer getId()
	{
		return id;
	}

	public void setId(Integer id)
	{
		this.id = id;
	}

	public String getUserName()
	{
		return userName;
	}

	public void setUserName(String userName)
	{
		this.userName = userName;
	}

	public String getRealName()
	{
		return realName;
	}

	public void setRealName(String realName)
	{
		this.realName = realName;
	}

	public String getPassword()
	{
		System.out.println("getPassword:" + password);
		return password;
	}

	public void setPassword(String password)
	{
		System.out.println("setPassword:" + password);
		this.password = password;
	}

	public Integer getAge()
	{
		return age;
	}

	public void setAge(Integer age)
	{
		this.age = age;
	}

	public Integer getDId()
	{
		return dId;
	}

	public void setDId(Integer dId)
	{
		this.dId = dId;
	}

	public Dept getDept()
	{
		return dept;
	}

	public void setDept(Dept dept)
	{
		this.dept = dept;
	}

	@Override
	public String toString()
	{
		return "User{" + "id=" + id + ", userName='" + userName + '\'' + ", realName='" + realName + '\''
				+ ", password='" + password + '\'' + ", age=" + age + ", dId=" + dId + ", dept=" + dept + '}';
	}
}
